package com.store.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Outgoods entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "outgoods", catalog = "depot")
public class Outgoods implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer OId;
	private Integer OGid;
	private String ONumber;
	private Integer ODid;
	private String ODuty;
	private String OTime;

	// Constructors

	/** default constructor */
	public Outgoods() {
	}

	/** full constructor */
	public Outgoods(Integer OGid, String ONumber, Integer ODid, String ODuty,
			String OTime) {
		this.OGid = OGid;
		this.ONumber = ONumber;
		this.ODid = ODid;
		this.ODuty = ODuty;
		this.OTime = OTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "o_id", unique = true, nullable = false)
	public Integer getOId() {
		return this.OId;
	}

	public void setOId(Integer OId) {
		this.OId = OId;
	}

	@Column(name = "o_gid")
	public Integer getOGid() {
		return this.OGid;
	}

	public void setOGid(Integer OGid) {
		this.OGid = OGid;
	}

	@Column(name = "o_number", length = 20)
	public String getONumber() {
		return this.ONumber;
	}

	public void setONumber(String ONumber) {
		this.ONumber = ONumber;
	}

	@Column(name = "o_did")
	public Integer getODid() {
		return this.ODid;
	}

	public void setODid(Integer ODid) {
		this.ODid = ODid;
	}

	@Column(name = "o_duty", length = 20)
	public String getODuty() {
		return this.ODuty;
	}

	public void setODuty(String ODuty) {
		this.ODuty = ODuty;
	}

	@Column(name = "o_time", length = 20)
	public String getOTime() {
		return this.OTime;
	}

	public void setOTime(String OTime) {
		this.OTime = OTime;
	}

}